<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>浏览投诉或建议</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link href="${ctx }/css/style.css" type="text/css" rel="stylesheet" />
		<link href="${ctx }/css/page.css" type="text/css" rel="stylesheet" />
	</head>
	<body>
		<s:form id="form1" action="listAdvices" method="post" namespace="/advice">
			<div style="width: 513px; height: 30px; text-align: left;">
				当前位置：浏览投诉或建议
			</div>
			<div style="width: 513px; background-color: #EDDEA0; height: 30px; border: 1px solid gray;">
				<b>浏 览 投 诉 或 建 议</b>
			</div>

			<div style="width: 100%; text-align: left; color: blue;">
				<table cellspacing="0" cellpadding="3" border="1" style="background-color:White;border-color:#E7E7FF;border-width:1px;border-style:None;width:100%;border-collapse:collapse;">
					<s:if test="page.data.size() == 0">
						<tr align="center">
							<td>暂无投诉建议！</td>
						</tr>
					</s:if>
					<s:else>
						<s:iterator value="page.data" status="st">
							<tr>
								<td style='color: black; <s:if test="#st.odd">background-color:white;</s:if><s:else>background-color:#E8F9E8;</s:else>'>
									<b>投诉或建议人：</b>
									<span>
										<s:property value="username" />
									</span>
									<br />
									<b>投诉或建议内容：</b>
									<span>
										<s:property value="content" />
									</span>
									<br /><br /><br />
								</td>
							</tr>
						</s:iterator>
					</s:else>
					<tfoot>
						<tr>
							<td align="center">
								<gc:page pageSize="${page.pageSize}" 
									totalCount="${page.totalCount}" 
									formId="form1" 
									totalPageCount="${page.totalPageCount}" 
									currentPageNo="${page.currentPageNo}" />
							</td>
						</tr>
					</tfoot>
				</table>
			</div>
		</s:form>
	</body>
</html>
